import layoutHeaderAside from "@/layout/index.js";

// 由于懒加载页面太多的话会造成webpack热更新太慢，所以开发环境不使用懒加载，只有生产环境使用懒加载
const _import = require("@/libs/util.import." + process.env.NODE_ENV);

const meta = { auth: true, cache: true };

export default {
    path: "/:parentid/:id/authManage",
    name: "authManage",
    meta: { ...meta, level: 0 },
    component: layoutHeaderAside, // layoutHeaderAside,
    redirect: { name: "authManage-menuManage" },
    children: [
        {
            path: "menuManage",
            name: "authManage-menuManage",
            component: _import("authManage/menuManage/index.vue"),
            meta: { ...meta, title: "菜单管理" }
        },
        {
            path: "dataDict",
            name: "authManage-dataDict",
            component: _import("authManage/dataDict/index.vue"),
            meta: { ...meta, title: "数据字典" }
        },
    ]
}